<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
  <title>works detail</title>
  <meta name="description" content="">
  <meta name="keywords" content="scrum,agile,project management">
  <meta http-equiv="Content-Type"
 content="text/html; charset=iso-8859-1">
    <style type="text/css">
		<%@ include file="/WEB-INF/css/style.css" %>
	</style>
	<script src="jquery-1.4.4.min.js"> </script>
	<script type="text/javascript">
	$(document).ready(function () {
        $('#close').click(function () {
            window.opener.location.reload(true);
            window.close();
        });
    });
	</script>


</head>
<body onunload="window.opener.location.reload();">
<div class="page-inpop">
<div class="pagepop">
<div class="main">
<div class="contentpop">
	<h2 class="sidebar1">Work management</h2>
				<h5>Users</h5>
				<form action="WorkDetails" method="post">
					<c:forEach items="${allUsers}" var="user">
						<c:choose>
			       				<c:when test="${usrid == user.id}">
				    				<p><input type="radio" name="user" value="${user.id}" checked="checked"/>${user.fullName}</p>
							    </c:when>
							    <c:otherwise>
			       					<p><input type="radio" name="user" value="${user.id}"/>${user.fullName}</p>	
							    </c:otherwise>
						</c:choose>
			       </c:forEach>  
			    <br/><br/>
				<h5>Roles</h5>
						<c:choose>
			       				<c:when test="${usrrol == \"ProductOwner\"}">
				    				<p><input type="radio" name="rol" value="ProductOwner" checked="checked"/>ProductOwner</p>
							    </c:when>
							    <c:otherwise>
			       					<p><input type="radio" name="rol" value="ProductOwner"/>ProductOwner</p>	
							    </c:otherwise>
						</c:choose>
						<c:choose>
			       				<c:when test="${usrrol == \"DevelopmentTeam\"}">
				    				<p><input type="radio" name="rol" value="DevelopmentTeam" checked="checked"/>DevelopmentTeam</p>
							    </c:when>
							    <c:otherwise>
			       					<p><input type="radio" name="rol" value="DevelopmentTeam"/>DevelopmentTeam</p>	
							    </c:otherwise>
						</c:choose>
						<c:choose>
			       				<c:when test="${usrrol == \"StakeHolder\"}">
				    				<p><input type="radio" name="rol" value="StakeHolder" checked="checked"/>StakeHolder</p>
							    </c:when>
							    <c:otherwise>
			       					<p><input type="radio" name="rol" value="StakeHolder"/>StakeHolder</p>	
							    </c:otherwise>
						</c:choose>
					<input id="plus" type="submit" name="action" value="Add"/>	
			 		<c:if test="${usrid != null}"><input id="edit" type="submit" name="action" value="Update"/></c:if>
			    </form>
					<p align="right"><input type='button' id='close' value='Close' /></p>
</div>
</div>
</div>
</div>
</body>
</html>